package com.guosheng.controller;

import com.guosheng.service.FeignClientsInteface;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class UserController {
    private Logger logger = LoggerFactory.getLogger(getClass());
    @Autowired
    FeignClientsInteface userService;
    @RequestMapping("/index")
    public String index(){
        logger.info("index方法");
        return userService.index();
    }
}

